package moneda;

import java.util.Scanner;

public class password1 {

	public static void main(String[] args) {
	
		Scanner leer = new Scanner(System.in);
	
		String vocales[] = {"a","e","i","o","u"};
		String palabra = leer.nextLine();
		String clave[] = palabra.split("");
		
	
		int i=5, r=0, m=0, z=0;
	//	for(int j=0;j<clave.length;j++){
			
			do{
		
			for(int a=0;a<clave.length;a++){
			if(clave[a].equalsIgnoreCase(vocales[a])){
			 i--;
			 }if(i==4){
				 a=vocales.length;
				break;}else z=1;
			}
		
			for(int k=0;k<clave.length;k++){
				if(clave[k].equalsIgnoreCase(clave[k+1]) && clave[k].equalsIgnoreCase(clave[k+2])){
					m++; r=0;
				}else{
					r++; m=0;
				}if(r==1 || m==1){	
					i--;
					k=clave.length;
					z=1;
					break;}
				if(i>4){break;}
			
			}  
		
		for(int l=1;l<clave.length;l++){
			if(clave[l]==clave[l-1] && clave[l]!=vocales[1] && clave[l]!=vocales[3]){
				i--;
				z=1;
				break;
			}
		}}while(z!=1);
			
			if(i!=4){
				System.out.println("< "+palabra+" >"+" is not acceptable");
				System.out.println(i);
			}else{
				System.out.println("< "+palabra+" >"+" is acceptable");
				System.out.println(i);
			}
	     leer.close();  
		} 
		
	}
	
			

        		

